<?php
	class GongyulistAction extends BaseAction{
		public function index(){
			$id = $_GET['g_id'];
			$result =M("gongyu")->join("vip ON vip.v_id = gongyu.g_broker")->where("g_id=$id")->join("district ON district.d_id = gongyu.g_district")->select();		
			$v_id = $result['0']['v_id'];
			$g_name = $result['0']['g_name'];

			$rent = M("gongyu")->where("g_broker=$v_id")->limit("15")->field("g_name,g_d_rent,g_id")->select();
			$this->assign("rent",$rent);
			$newtj = M("gongyu")->where("is_jingpin")->order("g_id desc")->limit(15)->field("g_name,g_d_rent,g_id")->select();
				
			$lou = M("gongyu")->where("g_name = '$g_name'")->select();
			$this->assign("lou",$lou);
			$this->assign("result",$result);
			$this->assign("newtj",$newtj);
			//var_dump($newtj);exit;
			$this->display();
		}
		
		
		
	
	
	

	
	}



?>